from flask import Flask
from app.machines.cpu import CpuInfo
from app.machines.mac import MacInfo

app = Flask(__name__)

@app.route('/api/cpu')
def get_cpu():
    print(CpuInfo.get_cpu_info())
    return CpuInfo.get_cpu_info()

@app.route('/api/mac')
def get_mac():
    print(MacInfo.get_mac())
    return MacInfo.get_mac()

if __name__ == '__main__':
    app.run(debug=True)